import request from '@/request'

// 登录方法
export function login(admin) {
  return request({
    url: '/admin/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data: admin
  })
}

//注销
export function logout() {
  return request({
    url: '/admin/logout'
  })
}